NAME	 = server
SOURCES  = main.o serverrunner.o serverclient.o serverbuilder.o

$(NAME) : $(SOURCES)
	g++ -o $(NAME) $(SOURCES) -lpthread -std=c++11

main.o : main.cpp serverbuilder.h
serverbuilder.o : serverbuilder.cpp serverbuilder.h serverrunner.h
serverrunner.o : serverrunner.cpp serverrunner.h serverclient.h
serverclient.o : serverclient.cpp serverclient.h

.PHONY : clear
.PHONT : delete
clear : 
	rm $(SOURCES)

delete : 
	rm $(NAME)
